package com.migu.contacts.util;

public class CycleUtil {
    public static String getCycleName(int cycleType, int cycleTime) {
//        list.add(new CreateTodoActivity.CycleBean("每天", 1, 1));
//        list.add(new CreateTodoActivity.CycleBean("每周", 2, 1));
//        list.add(new CreateTodoActivity.CycleBean("每两周", 2, 2));
//        list.add(new CreateTodoActivity.CycleBean("每月", 3, 1));
//        list.add(new CreateTodoActivity.CycleBean("每季度", 3, 4));
//        list.add(new CreateTodoActivity.CycleBean("每半年", 3, 6));
//        list.add(new CreateTodoActivity.CycleBean("每年", 4, 1));
        switch (cycleType) {
            case 0:
                return "无";
            case 1:
                return "每天";
            case 2:
                switch (cycleTime) {
                    case 1:
                        return "每周";
                    case 2:
                        return "每两周";
                }
            case 3:
                switch (cycleTime) {
                    case 1:
                        return "每月";
                    case 4:
                        return "每季度";
                    case 6:
                        return "每半年";
                }
            case 4:
                return "每年";

        }
        return "";
    }
}
